package com.udaos.modules.call.services;

import java.util.List;

import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.IocBean;

import com.udaos.common.base.Service;
import com.udaos.models.call.Ud_call_record;

/**
 * @author mutaotao
 * @time 2017-04-21 15:20:37
 * 
 */
@IocBean(args = { "refer:dao" })
public class UdCallRecordService extends Service<Ud_call_record> {
	public UdCallRecordService(Dao dao) {
		super(dao);
	}

	/**
	 * 根据ID获取回访记录
	 * @param id
	 * @return
	 */
	public List<Ud_call_record> findById(String id) {
		Cnd cnd=Cnd.NEW();
		cnd.and("call_id", "=", id);
		cnd.desc("createAt");
		return this.query(cnd);
	}
}